﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MobileAPI.DAL;
using MobileAPI.Entity.Model;

namespace MobileAPI.BLL
{
    public class BLLRepairsState:BaseBLL
    {
        private DALRepairsState dllState;
        public DALRepairsState DllState
        {
            get
            {
                if (dllState == null)
                {
                    dllState = DALFactory.getInstance().CreateRepairsStateDAL();
                }
                return dllState;
            }
        }

        public bool InsertRepairsState(ERepairsState state, string UserName)
        {
            try
            {
                return DllState.InsertRepairsState(state, UserName);
            }
            catch (Exception e)
            {
                base.WriteLog(e.Message);
                throw e;
            }
        }
    }
}
